/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ken
 * Date: 2023-11-18
 * Time: 22:29
 */
   interface D{
      public void func();

}
class A implements D{
       public void func() {
           System.out.println("接口重写的方法");
       }
        static {
            System.out.println("静态代码块");
        }
     {
        System.out.println("实例代码块");
    }
        public A (int a, int b){
            System.out.println("第一个");
        }

        public A(int a) {
            System.out.println("第二个");

        }
    }
     class B extends A {
        public B() {
           super(1);
            System.out.println("第三个");

        }
    }
public class Test {
    public static void main(String[] args) {
        B x = new B();
        System.out.println("===========");
        B x2 = new B();

    }
}
